package ch.ethz.group3.myalbum.client;

import com.smartgwt.client.widgets.grid.ListGridRecord;

public class GroupListRecord extends ListGridRecord {
	public GroupListRecord(String groupId, String thumbnail, String name,
			int members, int pictures) {
		setGroupId(groupId);
		setThumbnail(thumbnail);
		setName(name);
		setMembers(members);
		setPictures(pictures);
	}

	public int getPictures() {
		return getAttributeAsInt("pictures");
	}

	private void setPictures(int pictures) {
		setAttribute("pictures", pictures);
	}

	public int getMembers() {
		return getAttributeAsInt("members");
	}

	private void setMembers(int members) {
		setAttribute("members", members);
	}

	public String getName() {
		return getAttributeAsString("name");
	}

	private void setName(String name) {
		setAttribute("name", name);
	}

	public String getThumbnail() {
		return getAttributeAsString("thumbnail");
	}

	private void setThumbnail(String thumbnail) {
		setAttribute("thumbnail", thumbnail);
	}

	public String getGroupId() {
		return getAttributeAsString("groupId");
	}

	private void setGroupId(String groupId) {
		setAttribute("groupId", groupId);
	}
}
